package com.android.quiz.geek;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class GQHomeScreenActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button quizBtn = (Button) findViewById(R.home.quizQuestion);
        startQuiz(quizBtn);
    }
    
    public void startQuiz(Button quizBtn)
    {
    	quizBtn.setOnClickListener(new OnClickListener()
			{
				
				@Override
				public void onClick(View arg0)
				{
					Intent intent = new Intent(GQHomeScreenActivity.this, GQQuizActivity.class);
					startActivity(intent);
					
				}
			});
    }
}